package Facade_Pattern;

public class ClientServerFacade {
	private CheckWord checkWord;
	private Charge charge;
	private TypeString typeString;
	private String advertisement;
	
	public ClientServerFacade(String advertisement) {
		this.advertisement = advertisement;
		checkWord = new CheckWord(advertisement);
		charge = new Charge(checkWord);
		typeString = new TypeString(advertisement);
	}
	
	public void adAdvertisement() {
		checkWord.setChargeAmount();
		charge.giveCharge();
		typeString.typeString();
	}
}
